package com.hwadee.ems.enums;

import com.fasterxml.jackson.annotation.JsonValue;

import com.baomidou.mybatisplus.annotation.EnumValue;

import lombok.Getter;

@Getter
public enum SelectionMethod {
    REQUIRED(0, "必选"),
    OPTIONAL(1, "可选"),
    COMMON(2, "通选"),
    OTHER(3, "其他")
    ;

    @EnumValue
    private final int value;
    @JsonValue
    private final String description;

    SelectionMethod(int value, String description) {
        this.value = value;
        this.description = description;
    }
    
}
